import request from "@/utils/request";

//请求商品列表
export const reqTrademarkListByPage = (page = 1, limit = 5) => {
  return request.get(`/product/baseTrademark/${page}/${limit}`);
};

//添加或者修改
export const reqAddOrEditTrademark = (formData) => {
  if (formData.id) {
    return request.put(`/product/baseTrademark/update`, formData);
  } else {
    return request.post(`/product/baseTrademark/save`, formData);
  }
};

//删除品牌
export const reqDelTradeMark = (id) => {
  return request.delete(`/product/baseTrademark/remove/${id}`);
};
